<!-- 头部的搜索栏 -->
<template>
  <div class="search-wrapper">
    <form class="search" action="#">
      <input class="search-inp" type="text" />
      <button class="search-btn">
        <i class="iconfont icon-sousuo"> </i>
      </button>
    </form>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
};
</script>

<style lang='less' >
.search-wrapper {
  width: 296px;
  height: 50px;
  float: right;
  background-color: seagreen;
  margin-top: 25px;
  .search-inp {
    box-sizing: border-box;
    border: none;
    float: left;
    height: 50px;
    width: 244px;
    padding: 0 10px;
    font-size: 16px;
    border: 1px solid rgb(224, 224, 224);
    outline: none;
    &:focus,
    &:focus + button {
      border-color: #ff6700;
    }
  }

.search-btn {
    float: left;
    height: 50px;
    width: 52px;
    padding: 0;
    border: none;
    background-color: #fff;
    color: #616161;
    font-size: 16px;
    border: 1px solid rgb(224, 224, 224);
    border-left: none;
    outline-style: none;

    &:hover {
      background-color: #ff6700;
      color: #fff;
      border: none;
    }
  }
}
</style>
